package core;

/**
 * 状态码定义
 */
public enum ResponseInfo {
    SUCCESS(200, "success"),
    DESC(0,"成功"),
    ERR_DESC(1,"失败"),
    MSG(200,"请求成功"),
    ERR_MSG(500,"请求失败"),
    ERROR(500, "系统繁忙"),
    PARAM_ERROR(400,"接口调用参数错误"),
    LIMIT_ERROR(1001, "操作太频繁啦"),
    ;

    public final int code;

    public final String msg;

    private ResponseInfo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
